package com.ytc.service.impl;

import com.ytc.mapper.GoodMapper;
import com.ytc.model.Good;
import com.ytc.model.Type;
import com.ytc.service.GoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodServiceImpl implements GoodService {
    @Autowired
    private GoodMapper goodMapper;

    @Override
    public List<Good> queryGoodList() {
        return goodMapper.queryGoodList();
    }

    @Override
    public void addGood(Good good) {
        good.setGoodstatus(1);
        goodMapper.addGood(good);
    }


}
